package com.gideon.consumer.dto;

import lombok.Data;

import java.util.Objects;

@Data
public class UserDto {

    private String Name;

    private Integer sex;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserDto userDto = (UserDto) o;
        return Objects.equals(Name, userDto.Name) &&
                Objects.equals(sex, userDto.sex);
    }

    @Override
    public int hashCode() {
        return Objects.hash(Name, sex);
    }
}
